@import url('../var.css');

.edit-keyboard {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, calc((100% - var(--vkb-key-gap) * 4) / 5));
  grid-template-rows: repeat(3, calc((100% - var(--vkb-key-gap) * 2) / 3));
  gap: var(--vkb-key-gap);

  height: 100%;
}

.edit-key-control {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  background-color: var(--vkb-key-background);
  border: var(--vkb-key-border-width) solid var(--vkb-key-border-color);
  box-shadow: 0 0 var(--vkb-key-shadow-width) var(--vkb-key-shadow-color);
  border-radius: var(--vkb-key-borer-radius);
  transition: all 0.3s;
  cursor: pointer;
}


.edit-key-cursor {
  display: grid;

  grid-template-columns: repeat(3, calc((100% - var(--vkb-key-gap) * 2) / 3));
  grid-template-rows: repeat(4, calc((100% - var(--vkb-key-gap) * 3) / 4));
  gap: var(--vkb-key-gap);

  width: calc(300% + var(--vkb-key-gap) * 2);
  height: calc(300% + var(--vkb-key-gap) * 2);
}


.cursor-item {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 100%;
  width: 100%;

  color: var(--vkb-key-color);
  fill: var(--vkb-key-color);

  background-color: var(--vkb-key-background);
  border: var(--vkb-key-border-width) solid var(--vkb-key-border-color);
  box-shadow: 0 0 var(--vkb-key-shadow-width) var(--vkb-key-shadow-color);

  border-radius: var(--vkb-key-borer-radius);
  box-sizing: border-box;
  transition: all 0.3s;
  cursor: pointer;

}

.cursor-item svg {
  width: 28px;
}

.cursor-item-active {
  fill: var(--vkb-key-active-font-color);
  color: var(--vkb-key-active-font-color);
}

.cursor-item:active {
  background-color: var(--vkb-key-active-background);
  box-shadow: 0 0 var(--vkb-key-shadow-width) var(--vkb-key-active-shadow-color);
  border: var(--vkb-key-border-width) solid var(--vkb-key-active-border-color);
}

.cursor-item:nth-child(1) {
  grid-column: 2;
}

.cursor-item:nth-child(n + 2):nth-child(-n + 4) {
  grid-row: 2;
}

.cursor-item:nth-child(5) {
  grid-column: 2;
  grid-row: 3;
}

.cursor-item:nth-child(6) {
  grid-row: 4;
  width: calc(150% + var(--vkb-key-gap) / 2);
}

.cursor-item:nth-child(7) {
  grid-row: 4;
  width: calc(150% + var(--vkb-key-gap) / 2);
  margin-left: calc(50% + var(--vkb-key-gap) / 2);
}


.edit-key-control:active {
  background-color: var(--vkb-key-active-background);
  box-shadow: 0 0 var(--vkb-key-shadow-width) var(--vkb-key-active-shadow-color);
  border: var(--vkb-key-border-width) solid var(--vkb-key-active-border-color);
}

.edit-key-control:nth-child(2) {
  /* margin-left: calc(300% + 12px); */
  /* grid-row: 1; */
  grid-column: 4;
}

.edit-key-control:nth-child(3) {
  grid-column: 5;
}

.edit-key-control:nth-child(4) {
  grid-column: 4;
  grid-row: 2;
}

.edit-key-control:nth-child(5) {
  grid-column: 5;
  grid-row: 2;
}

.edit-key-control:nth-child(6) {
  grid-column: 4;
  grid-row: 3;
  width: calc(200% + var(--vkb-key-gap));
}

.edit-key-control:nth-child(7) {
  grid-column: 5;
  grid-row: 3;
}

.edit-key-control>svg {
  width: var(--vkb-keyboard-svg-size);
  height: var(--vkb-keyboard-svg-size);
}
